
//1 引入连接数据库的工具类
let mongoose = require('../util/dbUtile')
// 2 创建数据结构（用户的）
let couponSchema = mongoose.Schema({
    name:String,
    coupons:String,
    func:String,
    date:Array,
    intro:String
});
//3 创建数据的模型
let couponModel = mongoose.model('couponModel', couponSchema, "coupon");


//4 导出用户模型(***)
module.exports = couponModel